import request from '@/utils/request'

// 查询配送员列表
export function listData(query) {
  return request({
    url: '/basic/warehouse/sender/',
    method: 'get',
    params: query
  })
}


// 查询全部配送员
export function getAllData(query) {
  return request({
    url: '/basic/warehouse/sender/refer',
    method: 'get',
    params: query
  })
}
//特定仓库配送员下拉
export function wareSender(query) {
  return request({
    url: '/basic/warehouse/sender/referFilter',
    method: 'get',
  })
}


// 查询配送员详细
export function getDetail(id) {
  return request({
    url: '/basic/warehouse/sender/' + id,
    method: 'get'
  })
}


// 新增配送员
export function addData(data) {
  return request({
    url: '/basic/warehouse/sender/',
    method: 'post',
    data: data
  })
}

// 修改配送员
export function updateData(data) {
  return request({
    url: '/basic/warehouse/sender/',
    method: 'put',
    data: data
  })
}

// 删除配送员
export function delData(id) {
  return request({
    url: '/basic/warehouse/sender/' + id,
    method: 'delete'
  })
}

//所有配送员下拉
export function getAllSenderReffer(query) {
  return request({
    url: '/basic/warehouse/sender/referlist',
    method: 'get',
    params: query
  })
}


